package com.xiaoluo.lottery.filter;

/**
 * Created by Administrator on 2016/4/6.
 */
public class Filter {
    protected String orderType;
    protected int pageSize = 10;
    protected int pageIndex;

    public int getStart() {
        if(pageIndex<=0){
            pageIndex=1;
        }
        return (pageIndex-1) * pageSize;
    }

    public int getEnd() {
        return pageSize;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
}
